import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/blank"
    },
    {
      path: "/blank",
      component: () => import("@/views/blank"),
      meta: {
        title: "登陆中转页"
      }
    },
    {
      path: "/index",
      component: () => import("@/views/index/index"),
      meta: {
        title: "首页"
      }
    },
    {
      path: "/dataManage",
      component: () => import("@/views/dataManage/index"),
      meta: {
        title: "数据管理",
      }
    },
    {
      path: "/operation",
      component: () => import("@/views/dataManage/children/index"),
      meta: {
        title: "数据管理功能操作",
      }
    },

    {
      path: "/orign",
      component: () => import("@/views/dataManage/myvideo/orign"),
      meta: {
        title: "视频阶段",
      }
    },

    {
      path: "/videoList",
      component: () => import("@/views/dataManage/myvideo/videoList"),
      meta: {
        title: "视频数据",
       // keepAlive:true
      }
    },
    {
      path: "/videoDetail",
      component: () => import("@/views/dataManage/myvideo/videoDetail"),
      meta: {
        title: "视频详情",
      }
    },
    {
      path: "/sensor_stage",
      component: () => import("@/views/dataManage/sensor/sensor_stage"),
      meta: {
        title: "传感器数据阶段",
      }
    },
    {
      path: "/sensor_detail",
      component: () => import("@/views/dataManage/sensor/sensor_detail"),
      meta: {
        title: "传感器数据详情",
      }
    },
    {
      path: "/sensor_index",
      component: () => import("@/views/dataManage/sensor/sensor_index"),
      meta: {
        title: "传感器数据日期选择",
      }
    },
    {
      path: "/thirdParty",
      component: () => import("@/views/dataManage/children/thirdParty"),
      meta: {
        title: "第三方数据",
      }
    },
    {
      path: "/thirdDetail",
      component: () => import("@/views/dataManage/children/thirdDetail"),
      meta: {
        title: "第三方数据详情",
      }
    },
    {
      path: "/elements",
      component: () => import("@/views/dataManage/children/elements"),
      meta: {
        title: "营养元素",
      }
    },
    {
      path: "/qrcode",
      component: () => import("@/views/dataManage/children/qrcode"),
      meta: {
        title: "溯源码管理",
      }
    },
    {
      path: "/qrcodeDetail",
      component: () => import("@/views/dataManage/children/qrcodeDetail"),
      meta: {
        title: "溯源码管理",
      }
    },

    {
      path: "/printQrcode",
      component: () => import("@/views/dataManage/printer/printtest"),
      meta: {
        title: "打印首页",
      }
    },

    {
      path: "/printCode",
      component: () => import("@/views/dataManage/children/printCode"),
      meta: {
        title: "打印溯源码",
      }
    },

    {
      path: "/search",
      component: () => import("@/views/search/index"),
      meta: {
        title: "查询",
      }
    },
    {
      path: "/searchList",
      component: () => import("@/views/search/list"),
      meta: {
        title: "查询用户列表",
      }
    },

    {
      path: "/warehouse",
      component: () => import("@/views/warehouse/index"),
      meta: {
        title: "仓管",
      }
    },
    {
      path: "/out",
      component: () => import("@/views/warehouse/outView"),
      meta: {
        title: "出库",
      }
    },
    {
      path: "/in",
      component: () => import("@/views/warehouse/inView"),
      meta: {
        title: "入库",
      }
    },

    {
      path: "/setup",
      component: () => import("@/views/setup/index"),
      meta: {
        title: "设置",
      }
    },
    {
      path: "/scan",
      component: () => import("@/views/setup/scan"),
      meta: {
        title: "扫一扫",
      }
    },
    {
      path: "/print",
      component: () => import("@/views/setup/print"),
      meta: {
        title: "打印机管理",
      }
    },

    {
      path: "/login",
      component: () => import("@/views/login/login"),
      meta: {
        title: "登录",
      }
    },

    {
      path: "/refresh",
      component: () => import("@/views/refresh"),
      meta: {
        title: "刷新页",
      }
    },
    {
      path: "/refresh_store",
      component: () => import("@/views/refresh_store"),
      meta: {
        title: "刷新页",
      }
    },
    {
      path: "/monitor",
      component: () => import("@/views/monitor/index"),
      meta: {
        title: "温控",
      }
    },{
      path: "/equipment",
      component: () => import("@/views/monitor/children/index"),
      meta: {
        title: "设备数据",
      }
    },{
      path: "/abnormal",
      component: () => import("@/views/monitor/children/abnormal"),
      meta: {
        title: "设备数据",
      }
    },{
      path: "/tempary",
      component: () => import("@/views/monitor/children/tempary"),
      meta: {
        title: "异常设备数据",
      }
    },{
      path: "/history",
      component: () => import("@/views/monitor/children/history"),
      meta: {
        title: "历史数据",
      }
    }

  ]
})
